/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="POSICAOPROFISSIONAL")
public class PosicaoProfissionalProteu implements Serializable{

    @Id
    @Column(name="PPR_ST_CODIGO")
    private String pprStCodigo;
    @Column(name="PPR_ST_DESCRICAO")
    private String pprStDescricao;

    public String getPprStCodigo() {
        return pprStCodigo;
    }

    public void setPprStCodigo(String pprStCodigo) {
        this.pprStCodigo = pprStCodigo;
    }

    public String getPprStDescricao() {
        return pprStDescricao;
    }

    public void setPprStDescricao(String pprStDescricao) {
        this.pprStDescricao = pprStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PosicaoProfissionalProteu other = (PosicaoProfissionalProteu) obj;
        if ((this.pprStCodigo == null) ? (other.pprStCodigo != null) : !this.pprStCodigo.equals(other.pprStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.pprStCodigo != null ? this.pprStCodigo.hashCode() : 0);
        return hash;
    }

    

}
